﻿namespace WLFramework.Web
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    [AttributeUsage(AttributeTargets.Class)]
    public class AjaxScopeAttribute : Attribute
    {
        public string Name { get; set; }

        public AjaxScopeAttribute(string name)
        {
            this.Name = name;
        }
    }

    public abstract class AjaxMethodAttribute : Attribute
    {
    }

    [AttributeUsage(AttributeTargets.Method)]
    public class AjaxActionAttribute : AjaxMethodAttribute
    {
        public string Name { get; set; }

        public AjaxActionAttribute(string name)
        {
            this.Name = name;
        }
    }

    public class AjaxBeforeMethodAttribute : AjaxMethodAttribute
    {
    }

    public class AjaxAfterMethodAttribute : AjaxMethodAttribute
    {
    }

    public class AjaxErrorAttribute : AjaxMethodAttribute
    {
    }
}
